<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>兔丝街 - 看看兔丝们在买什么？</title>
<link type="text/css" rel="stylesheet" href="../css/base.css" />
<link type="text/css" rel="stylesheet" href="../css/shopping_street=20110716.css" />
</head>
<?PHP 
session_start();
include("../config/connect.php");
require_once("../public/common.php");
$il_order = CheckUrlParamNoDie("il_order");
$tag = urldecode(CheckUrlParamNoDie("tag"));
$catelog= urldecode(CheckUrlParamNoDie("cl"));
//if ($tag=="")	$tag="蕾丝";
//echo $il_order;
//exit;

$desc = "";
if ($tag!="")
{
	$sql = "select * from tag_desc where name='$tag' limit 1";
	$result = mysql_query( $sql );
	if (mysql_num_rows($result) > 0)
	{
		$row = mysql_fetch_assoc( $result );
		$desc = $row["desc"];
		mysql_query( "update tag_desc set hits=hits+1 where name='$tag'" );
	}
	else
	{
		mysql_query( "insert into tag_desc (name,hits) values ('$tag', 1)" );
	}
}
?>

<body class="Crowd">
<div id="wrapper">
	<!---head kaishi--->
     <?php
		 include("../headtop.php"); 
	?>
    <!-----head 结束----->
    
    <!----推荐商品 一 二 三级分类导航---->
     <?php
	 	$cl_catelog = $catelog;
		include("../goods.php"); 
	?>
    <!----推荐商品 导航结束---->
    <div id="main">
    	<div class="grid_12">
            <!-----标题 返现最高 最新分享------->
            <div class="goodsTitle mt14">
                <ul class="">
                    <h2>看看兔丝们在买什么？</h2>
                    <li <?php if ($il_order == "t" || $il_order == "") echo "class='active'"; ?> ><a href="?il_order=t">最新分享</a></li>
                    <li <?php if ($il_order == "c") echo "class='active'"; ?> ><a href="?il_order=c">返现最高</a></li>
                </ul>
            </div> 
            <!-----推荐内容------->
           <div>
                 <?PHP
				  $il_col = 4;
				  $il_tag = $tag;
				  $il_param="&tag=$tag&il_order=$il_order";
				  
				  include("../kk_itemlist.php"); 
				  ?>
            	</div>
            <!---推荐内容 结束----->
        </div>
    </div>
</div>

<!---网尾 kaishi--->
 <?php
     include("../networkend.php"); 
?>
<!------------>

</body>
</html>

<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F22b7662ec7d02c816ddfd8f6df6e5cea' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-20984072-3']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>